import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index/index'
import test from '@/components/test/test'
import protocol from '@/components/protocol/protocol'
import bbs from '@/components/bbs/bbs'
import advert from '@/components/advert/advert'
import pay from '@/components/pay/pay'
import payover from '@/components/payover/payover'


Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: '首页',
        component: index
    }, {
        path: '/protocol',
        name: '协议',
        component: protocol
    }, {
        path: '/bbs',
        name: '留言',
        component: bbs
    }, {
        path: '/advert',
        name: '测算历史',
        component: advert
    }, {
        path: '/pay',
        name: '典鹿文化',
        component: pay
    }, {
        path: '/payover',
        name: '八字详批',
        component: payover
    }, {
        path: '/test',
        name: '测试',
        component: test
    }, {
        path: '*',
        redirect: '/'

    }]
})